<?php

use Phinx\Migration\AbstractMigration;

class AddColumnStartAtInReviewRequestNodeTable extends AbstractMigration
{
    public function up()
    {
        $this->table("review_request_node")
            ->addColumn("start_at", "integer", [
                "null" => false,
                'default' => 0,
                'limit' => 10,
                'comment' => "流程开始时间"
            ])->save();
    }

    public function down()
    {
        $this->table("review_request_node")
            ->removeColumn("start_at")
            ->save();
    }
}
